package cc.rengu.redp.flowable.service.modelValidator;

import org.flowable.validation.ValidationError;

public class GenValidateError {
    public static ValidationError get(String activityId, String activityName, String message, boolean warning) {
        ValidationError validationError = new ValidationError();
        validationError.setWarning(warning);
        validationError.setDefaultDescription(message);
        validationError.setActivityName(activityName);
        validationError.setActivityId(activityId);
        return validationError;
    }
}
